package wt.hpad.activity.main;


import android.app.Activity;

import java.util.ArrayList;
import java.util.List;

import wt.hpad.base.BasePresenter;
import wt.hpad.base.BaseView;
import wt.hpad.model.adapter.TableAdapter;
import wt.hpad.model.bean.DishDetail;
import wt.hpad.model.bean.TableInfo;

/**
 * Created by wt on 17-10-25.
 */

public interface MainContract {

    interface View extends BaseView<MainContract.Presenter> {

        void closeCurrentActivity();

        /**
         * 刷新桌台
         */
        void refreshTable(TableAdapter adapter, boolean isUpdate, List<TableInfo> datas);

        void startDetailActivity(ArrayList<DishDetail> dishDetails);

        void startOrderActivity();
    }

    interface Presenter extends BasePresenter {
        /**
         * 更新桌台
         */
        void updateTableInfo(Activity activity);

        /**
         * 更新菜单
         */
        void updateMenu(Activity activity);

        /**
         * 更新口味
         */
        void updateCook();

        /**
         * 更新原因(退菜理由)
         */
        void updateException();

        /**
         * 刷新桌台状态
         */
        void refreshTableState();

        void setDeviceID();

        void setServerInfo();

        void setShowItem();

        /**
         * 进入所选桌台
         */
        void enterTable(int position);
    }
}
